package com.iting.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2022/2/8
 */
public class Student {
	private String name;
	private Integer age;
	private List<String> alias = new ArrayList<>();

	public Student(String name, Integer age) {
		this.name = name;
		this.age = age;
	}

	@Override
	public String toString() {
		return name+age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public List<String> getAlias() {
		return alias;
	}

	public void setAlias(List<String> alias) {
		this.alias = alias;
	}

	public void addAlias(String alia){
		alias.add(alia);
	}
}
